package com.bileetacrm;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;

public class BileetaLoginActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);

		setContentView(R.layout.bileeta_login_activity);

		Button bileetalogin = (Button) findViewById(R.id.btnbileetalogin);
		bileetalogin.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				Intent myIntent = new Intent(view.getContext(),
						BileetaDashbordActivity.class);
				startActivityForResult(myIntent, 0);
				// push from Left to Right
				overridePendingTransition(R.anim.anim_slide_in_left,
						R.anim.anim_slide_out_left);
			}

		});
		Button btnbileetaquite = (Button) findViewById(R.id.btnbileetaquite);
		btnbileetaquite.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				BileetaLoginActivity.this.finish();
				finish();
				android.os.Process.killProcess(android.os.Process.myPid());
			}

		});
		
	}
	
	@Override
	public void onBackPressed()
	{
	     // code here to show dialog
	     super.onBackPressed();  // optional depending on your needs
	}
}
